package com.itheima.mapper;

import com.itheima.entity.SysRole;
import com.itheima.entity.addRole;
import com.itheima.vo.RoleVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    List<SysRole> getAllRole(String name);
    List<SysRole> getAllRole();

    void addMenu(String value, String key);

    void addRole(SysRole sysRole);

    SysRole rowInfoRole(String id);
    void delRoleById(String id);

    void delRoleMenuById(String id);

    void updateRole(RoleVO roleVO);
}
